/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.command;

/**
 * 命令模式测试类
 * 
 * @author aeky
 */
public class Test {

    /**
     * @param args
     */
    public static void main(String[] args) {
        SimpleRemoteControl control = new SimpleRemoteControl();
        Light light = new Light();
        Command lightOn = new LightOnCommand(light);
        control.setCommand(lightOn);
        control.buttonPressed();
    }

}
